import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AccountController } from './account/controllers/account/account.controller';
import { AccountService } from './account/services/account/account.service';
import { AccountRepository } from './account/services/account/account.repo';
import { AccountEntity } from './account/entities/account.entity';
import { RoleEntity } from './role/entities/role.entity';
import { RoleController } from './role/controllers/role/role.controller';
import { RoleService } from './role/services/role/role.service';

@Module({
  imports: [TypeOrmModule.forFeature([AccountRepository, AccountEntity, RoleEntity])],
  controllers: [AccountController, RoleController],
  providers: [AccountService, RoleService],
})
export class AdminModule {}
